package com.zhu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhu.domain.InventoryRecord;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author JoyBoy
 * @since 2022-06-02
 */
public interface InventoryRecordService extends IService<InventoryRecord> {
    /**
     * 功能描述 添加库存记录
     * @author JoyBoyZH
     * @date 2022/6/6
     * @param inventoryRecord
     * @return boolean
     */
    boolean saveInventoryRecord(InventoryRecord inventoryRecord);

    /**
     * 功能描述 获取所有出入库信息
     * @author JoyBoyZH
     * @date 2022/6/6
     * @param
     * @return java.util.List<com.zhu.domain.InventoryRecord>
     */
    List<InventoryRecord> getInventoryRecordByOperation(Integer operation);

    /**
     * 功能描述 通过rid查找库存记录
     * @author JoyBoyZH
     * @date 2022/6/6
     * @param rid
     * @return com.zhu.domain.InventoryRecord
     */
    InventoryRecord getRecordByRid(String rid);

    /**
     * 功能描述 条件查询所有出入库信息
     * @author JoyBoyZH
     * @date 2022/6/6
     * @param
     * @return java.util.List<com.zhu.domain.InventoryRecord>
     */
    List<InventoryRecord> conditionSelect(Integer operation, String warehouseName, String rid);

    /**
     * 功能描述 修改库存记录信息
     * @author JoyBoyZH
     * @date 2022/6/12
     * @param inventoryRecord
     * @return boolean
     */
    boolean updateInventoryRecord(InventoryRecord inventoryRecord);

    boolean updateRealName(String realName,String newName);

    boolean updateWarehouseName(String oldName,String newName);
}
